CC=gcc
CFLAGS=-Wall -g -I/usr/include -I/usr/local/include
LDFLAGS_GMSSL=-lgmssl -lcrypto

all:  sm4_gmssl sm3_gmssl sm2_gmssl


# GmSSL 目标
sm4_gmssl: sm4_gmssl.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS_GMSSL)
sm3_gmssl: sm3_gmssl.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS_GMSSL)
sm2_gmssl: sm2_gmssl.c
	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS_GMSSL)

clean:
	rm -f sm4_openssl sm3_openssl sm2_openssl sm4_gmssl sm3_gmssl sm2_gmssl *.o
